/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;
import modelo.Sustrato;
import dao.generic.GenericDAO;

/**
 *
 * @author Administrador
 */
public class SustratoDAO extends GenericDAO{
    public Sustrato getSustratoById(int idSustrato){
        Sustrato s = null;
        try{
            iniciarOperacion();
            s = (Sustrato) sesion.get(Sustrato.class, idSustrato);
        }finally{
            sesion.close();
        }
        return s;
    }
    
}
